package jvm.heap;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: ideaAdmin
 * TODO: 查看GC的日志
 *       设置参数：-Xms9m -Xmx9m -XX:+PrintGCDetails
 * Date: 2022/2/21:9:14
 * Description:
 */

public class GCLog {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        String a = "a";
        while (true) {
            a = a+a;
            list.add(a);
        }

    }
}
